package com.pda.gongpin.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.viewholder.BaseViewHolder;

import com.pda.gongpin.R;
import com.pda.gongpin.bean.FullTrayInStaticsBean;
import com.wangshen.base.ui.mvp.base.adapter.BaseAdapter;

import java.util.List;

public class FullTrayInStaticsAdapter extends BaseAdapter<FullTrayInStaticsBean> {
    public FullTrayInStaticsAdapter(int layoutResId, @Nullable List<FullTrayInStaticsBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, FullTrayInStaticsBean item) {
        super.convert(helper, item);
        helper.setText(R.id.tv_sku,item.getTitle());
        helper.setText(R.id.tv_materialCode,"我的料号："+item.getMaterialCode());
        helper.setText(R.id.tv_articleId,"物资编号："+item.getArticleId());
        helper.setText(R.id.tv_articleName,"物资名称："+item.getArticleName());
        helper.setText(R.id.tv_inNum,"应上架："+item.getShouldNumStr()+"");
        helper.setText(R.id.tv_alreadyInNum,"已上架："+item.getAlreadyNumStr()+"");
        helper.setText(R.id.tv_spec,"规格："+item.getSpec()+"");
        helper.setText(R.id.tv_standard,"标准："+item.getStandard());
        helper.setText(R.id.tv_grade,"等级："+item.getGrade());
        helper.setText(R.id.tv_surfaceTreatment,"表色："+item.getSurfaceTreatment());
        helper.setText(R.id.tv_brand,"品牌："+item.getBrand());
    }
}
